-- GENERATED SPELL FOR [Southsea Privateer] --


function spell0_3384(pUnit, Event) --@Fire Shot,n/a--
pUnit:FullCastSpellOnTarget(3011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3384', 565, 1)
end

function spell1_3384(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3384', 600, 1)
end

function Sorts_3384(pUnit, Event)
local choix_sorts_3384 = math.random(0, 1)
if choix_sorts_3384 == 0 then
pUnit:RegisterEvent('spell0_3384', 1, 1)
end
if choix_sorts_3384 == 1 then
pUnit:RegisterEvent('spell1_3384', 1, 1)
end
end

function mob3384_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3384', math.random(1500, 3000), 1)
end

function mob3384_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3384_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3384_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3384, 1, 'mob3384_Action')
RegisterUnitEvent(3384, 2, 'mob3384_Leave')
RegisterUnitEvent(3384, 3, 'mob3384_Kill')
RegisterUnitEvent(3384, 4, 'mob3384_Die')
